package cvsexercise7;

public class BasicShapeClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		/* Write out a start message to the console */
		System.out.println("Exercise 7 - Basic Shape Class started");
		
		/* Instantiate an object of the Shape class
		 * NOTE: Use the constructor to provide a colour for the object
		 */
		Shape myShape = new Shape("red");
		
		/* Use the Shape class toString() method to output the current colour */
		System.out.println(myShape.toString());
		
		/* Use the Shape class setColour() method to change the colour 
		 * and again use the toString() method to output the new colour 
		 */
		myShape.setColour("green");
		System.out.println(myShape.toString());
		
		/* Invoke the getArea() method of the Shape class and write out the resulting area value */
		double dArea = myShape.getArea();
		System.out.println("Area of myShape = " + dArea);
		
		/* Write out a completed message to the console */
		System.out.println("Exercise 7 - Basic Shape Class completed");
	}
}
